package MyFile;

import java.io.File;

public class demo2 {
    public static void main(String[] args) {
        File file = new File("D:/software");
        File[] files = file.listFiles();
        for (File file1:files){
            System.out.println(file1.getParent());
        }
    }
}
